
package com.company.management.domain.reward.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@ApiModel(description = "奖励模型")
public class RewardsAddDTO {
    @ApiModelProperty(value = "用户ID集合")

    private List<Integer> userIds;
    @ApiModelProperty(value = "奖励日期")
    private String rewardDate;
    @ApiModelProperty(value = "创建人id")
    private Integer createUserId;
    @ApiModelProperty(value = "扣分加分id")
    private Integer sid;
    @ApiModelProperty(value = "自定义事项")
    private String matter;
    @ApiModelProperty(value = "奖励金额")
    private BigDecimal money;
    @ApiModelProperty(value = "奖励分数")
    private BigDecimal rewardScore;
    @ApiModelProperty(value = "备注")
    private String note;

    public boolean checkMatter(){
        return StringUtils.isNotBlank(this.matter);
    }
}